<template>
  <div class="app">
    <h1 class="slogan">欢迎来到自习室预约系统</h1>
    <h1 class="slogan">请选择登录模式</h1>
    <div class="buttons">
      <el-button type="primary" @click="redirectTo('/UserLoginView')">用户</el-button>
      <el-button type="primary" @click="redirectTo('/SuperAdminLoginView')">超级管理员</el-button>
      <el-button type="primary" @click="redirectTo('/StudyRoomAdminLoginView')">自习室管理员</el-button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    redirectTo (path) {
      this.$router.push(path)
    }
  }
}
</script>

<style>
.app {
  margin-top: -60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
  /* 背景图片设置 */
  background-image: url('@/assets/自习室.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height:95vh;
}

.slogan {
  font-size: 24px;
  margin-bottom: 20px;
}

.buttons {
  display: flex;
  gap: 20px;
}

.buttons > .e l-button {
  font-size: 18px;
  padding: 15px 30px;
}
</style>
